<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>

</body>
<script>
    var obj = {
        name:'莉莉',
        age:18,
        demo:function(){
            document.log(123456);
        }
    };

    delete obj.name;
    delete obj.age;
    delete obj.demo;

    console.log(obj);
    obj.demo();
    
</script>
</html>